<?php

/*
 * Модель авторов статей газеты
 */

namespace APPS\NEWSPAPER\MODELS;

class Author extends \T4\Model {
    
    protected static $schema = array(
	'columns' => array(
	    'name'	=> array('type' => 'string', 'comment' => 'Имя'),
	    'surname'	=> array('type' => 'string', 'comment' => 'Фамилия'),
	    'photo'     => array('type' => 'image', 'comment' => 'Фотография'),
	),
	'indexes' => array(
	    array( 'columns' => array('surname') ),
	)
    );
    
}
